#ifndef CARD_H
#define CARD_H

#include "ui_mainwindow.h"
#include <QtGui/QPushButton>
#include <QTimer>

class Card :	public QObject
{
		Q_OBJECT

	QPushButton* button;
	QIcon averse;
	QIcon reverse;
	static int counter;
	static Card *previousCard;
	bool compareIconTo(Card *card);

public:
	Card();
	~Card();

	QIcon getReverse();
	void setReverse(QIcon icon);
	QIcon getAverse();
	void setAverse(QIcon icon);
	QPushButton* getButton();

public slots:
	void turnCard();
	void hideCards();
	void reverseCards();

};

#endif // CARD_H